Return to doc.sitecore.com

Valid for Sitecore 5.2, 5.1.1
  Copying and Moving Items
Prev Next

The Sitecore clients provide users with commands to copy and move items.  If you want these commands to work for items from your data source, you need to implement the methods listed below.

Return Value

Method Name

Parameters

Description

bool

CopyItem

ItemDefinition source
ItemDefinition destination
string copyName
ID copyID
CallContext context
 

Creates a duplicate of the provided source item, copying all versions (if the data provider supports versioning), and creating the copy as a child of the destination item. Returns True if the item was successfully copied, False otherwise.

bool

MoveItem

ItemDefinition item
ItemDefinition destination
CallContext context

Moves the given item from its current parent to be a child of the given destination item.  Returns True if the item was moved successfully, False otherwise.


Prev Next